package avicit.bdp.dds.dao.mapper;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.common.service.dto.BdpColumnDTO;
import avicit.bdp.common.service.dto.BdpTableDTO;
import avicit.bdp.dds.dao.entity.LineageTableDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 数据血缘表关系数据操作接口
 *
 */
@Repository
public interface LineageTableDAO extends BaseDAO<LineageTableDTO>{

    /**
     * 批量插入
     * @param lineageTableList
     * @return
     */
    int batchInsert(@Param("lineageTableList") List<LineageTableDTO> lineageTableList);

    /**
     * 查询所有血缘关系表
     * @return
     */
    List<LineageTableDTO> getAllLineageTable();

    BdpTableDTO selectTableById(@Param("tableId") String tableId);

//    List<BdpTableDTO> selectAllTable();

    List<BdpColumnDTO> selectAllColumnByTableIds(@Param("tableIdList")  List<String> tableIdList);

}
